package com.lin.sys.service.impls;

import org.apache.dubbo.config.annotation.Service;
import com.lin.common.service.impl.BaseService;
import com.lin.sys.entity.SysRoleMenu;
import service.RoleMenuService;

import java.util.Arrays;

@Service
public class RoleMenuServiceImpl extends BaseService<SysRoleMenu> implements RoleMenuService {

    @Override
    public void deleteByRoleId(Long roleId) {
        this.batchDelete(Arrays.asList(roleId.toString()),"roleId",SysRoleMenu.class);
    }

    @Override
    public void deleteByMenuId(Long menuId) {
        this.batchDelete(Arrays.asList(menuId.toString()),"menuId",SysRoleMenu.class);
    }
}
